﻿using System.Collections.Generic;
using BoutiquePOS.DAL.DAO;
using BoutiquePOS.DAL.Gateway;

namespace BoutiquePOS.Manager
{
    public class SalesManager
    {
        private SalesGateway aSalesGateway =new SalesGateway();

        public void SaveSales(List<SalesDtls> aSalesDtls)
        {        
            aSalesGateway.SaveSales(aSalesDtls);
        }
        public SalesDtls SaleseById(int saleseId)
        {
            return aSalesGateway.FindSalesDtls(saleseId);
        }
        public List<SalesDtls> GetAllPurchaseDtls()
        {
            return aSalesGateway.GetAllSales();
        }

        public string NextID(string yearAndMonth)
        {
            return aSalesGateway.NextID(yearAndMonth);
        }
        public string GetProductNameAutoCompleteData(int formId)
        {
            return aSalesGateway.GetProductNameAutoCompleteData(formId);
        }
    }
}